import { View } from '@tarojs/components';
import s from './index.module.scss'
import code from './code.md'
import Card from 'components/CodeCard'
import { useState } from 'react';

export default function Font() {
  const [show, setShow] = useState(true)
  return(
    <View className={s.wrapper}>
      <Card
        title='color'
        desc='改变字体颜色'
        renderCode={() =>(
          show ? <wemark md={code} link highlight type='wemark' /> : null
        )}
        btn={() =>{setShow(!show)}}
      >
        <View className={s.container}>
          <View className={s.box_1}>mybox</View>
        </View>
      </Card>
    </View>
  )
}